import { Button, ErrorBlock, Space } from 'antd-mobile';
import React from 'react';
import { useHistory } from 'react-router-dom';

export default function NotFound() {
  const history = useHistory();
  return (
    <div>
      <ErrorBlock fullPage status="default">
        <Space>
          <Button
            color="primary"
            className="--adm-defualt-color"
            onClick={() => history.push('/')}
          >
            返回首页
          </Button>
          <Button color="warning" onClick={() => history.goBack()}>
            回退
          </Button>
        </Space>
      </ErrorBlock>
    </div>
  );
}
